/**
 * IMimeMailManager.java.java.
 * User: BrianChen Date: 2012-6-16 上午11:28:23
 *
 * Copyright (c) 2009 Hewlett-Packard Development Company, L.P.
 * All rights reserved.
 */
package com.collapsar.core.email;

import java.util.Map;

import org.springframework.mail.javamail.JavaMailSender;

import com.collapsar.core.template.ITemplateFormatter;

/**
 * <pre>
 * REVISIONS: 
 * Version 	Date 		Author 			Description
 * ------------------------------------------------------------------- 
 * 1.0 		2012-6-16 	BrianChen 	1. Created this class.
 * </pre>
 * 
 * @author BrianChen
 * @date 2012-6-16 上午11:28:23
 * @version 1.0
 * @see
 * 
 */
public interface IMimeMailManager {

	/**
	 * 发送MIME格式的 通知邮件
	 * @param to
	 * @param from
	 * @param subject
	 * @param classPathTemplate
	 * @param templateContext
	 * @throws Exception
	 */
	void sendNotificationMail(String to, String from, String subject,
			String classPathTemplate, Map<String, Object> templateContext)
			throws Exception;
	/**
	 * 注入 spring的mailSender.
	 * 
	 * @param mailSender
	 */
	void setMailSender(JavaMailSender mailSender);

//	ITemplateFormatter getMimeEmailFormatter();
	/**
	 * 注入 模版格式化引擎
	 */
	void setMimeMailFormatter(ITemplateFormatter mimeMailFormatter);
}
